import java.io.File;

public class Demo_File4 {
    public static void main(String[] args) {
        File file = new File("d:/test/test2/test3/test4");
        System.out.println(file.exists());
        System.out.println(file.mkdir());
        System.out.println(file.exists());
        System.out.println(file.mkdirs());
        System.out.println(file.exists());
    }
    public static void main1(String[] args) {
        File file = new File("d:/test/test1");
        System.out.println(file.exists());
        System.out.println(file.isFile());
        System.out.println(file.isDirectory());
        System.out.println(file.mkdir());
        System.out.println(file.exists());
        System.out.println(file.isFile());
        System.out.println(file.isDirectory());
        System.out.println(file.mkdir());
    }
}
